package 进阶.线程.多线程2;

public class demo01 {
    public static void main(String[] args) {
        //3.创建一个实现类的对象
        RunnableImpl runnable = new RunnableImpl();
        //4.创建Thread的对象，传递Runnable的实现类的对象
        Thread t = new Thread(runnable);
        //5.
        t.start();
        for (int i = 0; i < 20; i++) {
            System.out.println(Thread.currentThread().getName() + i);
        }
    }
}
